package graduation.service.Impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import graduation.dao.TeamActivityDao;
import graduation.entity.TeamActivity;
import graduation.service.TeamActivityService;
import graduation.vo.PageVO;
@Service
@Transactional
public class TeamActivityServiceImpl implements TeamActivityService{
	@Autowired
	private TeamActivityDao teamActivityDaoImpl;
	
	/**
	 * 添加活动
	 */
	@Override
	public void addTeamActivity(TeamActivity teamActivity) {
		// TODO Auto-generated method stub
		teamActivityDaoImpl.addTeamActivity(teamActivity);
	}

	@Override
	public TeamActivity getActivityById(String teamActivityId) {
		// TODO Auto-generated method stub
		return teamActivityDaoImpl.getActivityById(teamActivityId);
	}

	@Override
	public void deleteActivityById(String teamActivityId) {
		// TODO Auto-generated method stub
		teamActivityDaoImpl.deleteActivityById(teamActivityId);
	}

	@Override
	public TeamActivity updateActivityById(TeamActivity teamActivity) {
		// TODO Auto-generated method stub
		return teamActivityDaoImpl.updateActivityById(teamActivity);
	}

	@Override
	public PageVO getAllActivity(int page, int size) {
		// TODO Auto-generated method stub
		return teamActivityDaoImpl.getAllActivity(page, size);
	}

	@Override
	public void deleteActivity(TeamActivity teamActivity) {
		// TODO Auto-generated method stub
		teamActivityDaoImpl.deleteActivity(teamActivity);
	}
	
}
